﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using CNVP.Framework.Helper;

namespace CNVP.JShop.BLL
{
    public class CNVP_CreditInflux
    {
        DAL.CNVP_CreditInflux dal = new DAL.CNVP_CreditInflux();

        #region BLL
        #region 添加
        /// <summary>
        /// 添加
        /// </summary>
        public int Add_CNVP_CreditInflux(Model.CNVP_CreditInflux obj)
        {
            return dal.Insert(obj);
        }
        #endregion

        #region 修改
        /// <summary>
        /// 修改
        /// </summary>
        public int Update_CNVP_CreditInflux(Model.CNVP_CreditInflux obj)
        {
            return dal.Update(obj);
        }
        #endregion

        #region 删除
        /// <summary>
        /// 删除
        /// </summary>
        public int Delete_CNVP_CreditInflux(Model.CNVP_CreditInflux obj)
        {
            return dal.Delete(obj);
        }

        #endregion

        /// <summary>
        /// 查看单个
        /// </summary>
        public Model.CNVP_CreditInflux GetSingle_CNVP_CreditInfluxById(int ID)
        {
            return dal.LoadById(ID);
        }


        public List<Model.CNVP_CreditInflux> Load_All_CNVP_CreditInflux(string SqlWhere)
        {
            return dal.LoadAll(SqlWhere);
        }
        #endregion
    }
}
